from selenium.webdriver.common.by import By

from pom.base import BaseDriver


class LoginPage(BaseDriver):
    _login_name = By.ID, 'name'
    _login_pass = By.ID, 'pass'
    _login_btn = By.CSS_SELECTOR, '[type="submit"]'


    def login_name(self):
        return self.driver.find_element(*self._login_name)


    def login_pass(self):
        return self.driver.find_element(*self._login_pass)


    def login_btn(self):
        return self.driver.find_element(*self._login_btn)






